package com.alibaba.nacos;

import com.alibaba.nacos.console.config.ConfigConstants;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.scheduling.annotation.EnableScheduling;

/**
 * @author liubinyuan
 * @Title:
 * @Package
 * @Description:
 * @date 2021/12/1711:33
 * @EnableDiscoveryClient: 开启注册
 */
@SpringBootApplication
@EnableScheduling
public class CloudNacosApplication {
    public static void main(String[] args) {
        System.setProperty(ConfigConstants.TOMCAT_DIR, "logs");
        System.setProperty(ConfigConstants.TOMCAT_ACCESS_LOG, "false");
        // 设置nacos 单机启动
        System.setProperty(ConfigConstants.STANDALONE_MODE, "true");
        SpringApplication.run(CloudNacosApplication.class,args);
    }
}
